package com.neusoft.neuiotms.dcam.fixed.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.neusoft.bizcore.web.bean.TreeBean;
import com.neusoft.bizcore.web.support.Searchable;
import com.neusoft.neuiotms.dcam.fixed.dto.SpareTypeDTO;

public interface SpareTypeService {

	SpareTypeDTO create(SpareTypeDTO dto);

    void delete(Long id);

    SpareTypeDTO update(Long id, SpareTypeDTO dto);
    
    List<SpareTypeDTO> findAll();
    
    SpareTypeDTO details(Long id);
    
    Page<SpareTypeDTO> search(Pageable pageable, Searchable searchable);
    
    List<TreeBean> tree();
    
}
